import 'package:safetymonitor/app/core/core.dart';

/// @Author: leijingxing
/// @Date: 2023-3-17
/// @LastEditTime: 2023-3-17
/// @LastEditors: leijingxing
/// @Description: 自定义appbar
class CustomAppBar extends AppBar {
  CustomAppBar({
    super.key,
    super.leading,
    Widget? title,
    String? titleText,
    super.actions,
    double? elevation,
    Color? shadowColor,
    super.foregroundColor,
    Color super.backgroundColor = Colors.white,
    bool super.centerTitle = true,
    VoidCallback? onBack,
    super.systemOverlayStyle,
    /// 信息按钮颜色
    Color? iconButtonColor,
    /// 是否显示返回按钮
    super.automaticallyImplyLeading,
    super.bottom,
  }) : super(
          title: title ?? (titleText != null ? Text(titleText, style: TextStyles.black_18,) : null),
          elevation: elevation ?? 0,
          titleSpacing: 0
        );
}
